package pl.edu.mimuw.irs.rcp.controller.editor.workflow.part;


/**
 * @author Jakub Rauch
 * Created on: 2009-05-18
 */
public class IRSArcEditPart extends ArcEditPart {

	// *** Attributes

	// *** Methods
	
	/*
	@Override
	protected ConnectionAnchor getSourceConnectionAnchor() {
		if (getSource() == null || !(getSource() instanceof IRSNodeEditPart)) { 
			return super.getSourceConnectionAnchor();
		} else if (getSource() instanceof IRSPlaceEditPart) {
			return new EllipseHandleBoundsAnchor(((IRSNodeEditPart)getSource()).getFigure());
		} else {
			return new ChopboxHandleBoundsAnchor(((IRSNodeEditPart)getSource()).getFigure());
		}
	}
	
	@Override
	protected ConnectionAnchor getTargetConnectionAnchor() {
		if (getTarget() == null || !(getTarget() instanceof IRSNodeEditPart)) { 
			return super.getTargetConnectionAnchor();
		} else if (getTarget() instanceof IRSPlaceEditPart) {
			return new EllipseHandleBoundsAnchor(((IRSNodeEditPart)getTarget()).getFigure());
		} else {
			return new ChopboxHandleBoundsAnchor(((IRSNodeEditPart)getTarget()).getFigure());
		}
	}
	
	protected IFigure createFigure()
	{
		PolylineConnection connection = (PolylineConnection)super.createFigure();
		connection.setConnectionRouter(new BendpointConnectionRouter());
		connection.setTargetDecoration(new PolygonDecoration());
		return connection;
	}*/
}
